//
//  LZVideoResourceLoader.h
//  laziz_Consumer
//
//  Created by xbnzd on 17/3/29.
//  Copyright © 2017年 XBN. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "LZRequestVideoTask.h"

@protocol LZVideoResourceLoaderDelegate <NSObject>

- (void)resourceLoaderDidFinishLoadingWithTask:(LZRequestVideoTask *)task;

- (void)resourceLoaderDidFailLoadingWithTask:(LZRequestVideoTask *)task withErrorCode:(NSInteger)errorCode;

- (void)resourceLoaderDidStartLoadingWithPrgoress:(CGFloat)prgoress;
@end

@interface LZVideoResourceLoader : NSObject<AVAssetResourceLoaderDelegate>
@property (nonatomic, weak) id<LZVideoResourceLoaderDelegate>lzResourceLoaderDelegate;

- (NSURL *)getSchemeVideoURL:(NSURL *)vUrl;

@end
